package org.jeecg.modules.travel.service;


import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.travel.dto.favorites.AppFavoritesPageDto;
import org.jeecg.modules.travel.dto.favorites.FavoritesAddDto;
import org.jeecg.modules.travel.entity.JhFavorites;
import org.jeecg.modules.travel.vo.favorites.AppFavoritesRecordVo;
import org.jeecg.modules.travel.vo.favorites.JhFavoritesVo;

/**
 * @Description: 用户收藏表
 * @Author: jeecg-boot
 * @Date:   2025-04-19
 * @Version: V1.0
 */
public interface IJhFavoritesService extends IService<JhFavorites> {

    /**
     * 移动端收藏
     * @param dto 参数
     * @return {@code String }
     * @author wentao.wang
     * @date 2025-04-20 13:52:40
     */
    String storeUp(FavoritesAddDto dto);

    IPage<AppFavoritesRecordVo> appFavoritesPageList(AppFavoritesPageDto dto, Page<JhFavorites> page, QueryWrapper<JhFavorites> queryWrapper);

    String cancelFavorites(String id);

    String cancelContent(String contentId, String type, String userId);


    IPage<JhFavoritesVo> queryPageList(Page<JhFavorites> page, QueryWrapper<JhFavorites> queryWrapper);
}
